Text calendar 2018 to 2030

Author: Chris | Created: 2018-03-15 0:16 | Last Activity: 2018-03-19 17:01

Original Post

2018-03-15 0:16
In May 2015 someone asked me for the text-based calendar I created and I posted a link. This is a quick note to say I've extended the calendar to 2030 if anyone is interested in a copy.

https://pastebin.com/qXMTviLF (click download)

After many years I am still using this as my calendar. I had been storing it in a Google Doc and using my web browser on the Mac and the Google Docs app on the iPhone to edit it. Since last year I've switched to using Apple's vastly improved built-in Notes app. It works very cleanly and reliably and has a raft of useful yet simple features such as checklists, images and sketches.

Changes I make on the Macs, iPhone or iPad are synced within seconds to the other devices. For extra reliability I've split the calendar into a separate Note for each year as that means there's much less to sync with each change. I sort my Notes by Title and also use a monospaced font which makes it look very tidy. If you're an Apple user and not played with Notes since last year give it a whirl, you'll like it.

Regards,
Chris

Reply by james220

2018-03-15 2:48
Is there a script you use to make this that you could share with us? That would be really helpful...

Reply by Chris

2018-03-15 4:47
I didn't use a script, I created it in TextEdit (text editor on the Mac) using lots of copy/paste. Key to this is the little-known trick that if you hold down Alt when dragging with the mouse you can select vertical areas of text. So it's a simply job of entering once and copying multiple times the days of the week, then entering the dates, copying those for normal and leap years, and then using the trick to align Jan 01 to the correct day of the week for however many years you want. Finally a bit of tidying up, spacing, titles, etc.

Regards,
Chris

Reply by Andreas Maurer

2018-03-15 13:40
james220:

I wrote a quick JavaScript that produces the same output: http://jsfiddle.net/qnoertvc/35/

You can set the set the start and end year by changing the variables at the top. You can also change the strings in the variables yearPrefix, months, and weekdays to change the look or translate into another language.

Reply by Chris

2018-03-15 14:38
Nice one, thanks Andreas.

Reply by Alan Baljeu

2018-03-15 16:50
Turns out, a calendar of that format only requires 7 months. Every other is a quick copy/edit if you know how long your months are. March is a "Th 01" month.

Reply by Chris

2018-03-15 17:04
Indeed, you can make a template for each month type and then copy them. Some years are the same too, or parts of them. It was actually much quicker to paste entire years and then paste in the entire year of dates starting on the correct date for each one. Andreas's script makes it even quicker - I'll make a note to check it again in 12 years!

Reply by Andreas Maurer

2018-03-16 8:08
Now you made me realise that 2030 is in only 12 years.

I feel old. :-)

Reply by Chris

2018-03-18 3:54
I remember thinking that 12 years ago!

I tried to incorporate your code into a standalone html doc (apart from the jquery lib) but my js knowledge is not up to the job. Can you see where I've gone wrong? Your code is between a window.load function, and I've also tried using a paragraph with the output id instead of a div, to no avail.

https://pastebin.com/3AwUQLqa

Reply by Chris

2018-03-18 4:00
Just to add, I spotted I missed the closing tag from the jquery, added that now, but still no luck.
Cheers.

Reply by Andreas Maurer

2018-03-18 21:05
Hi Chris,

load() does not do what you think it does - http://api.jquery.com/load/

Just replace the line

$(window).load(function(){

with

$(function(){

and it will work.

Reply by Andreas Maurer

2018-03-18 21:17
While I was at it again, I modified the script so it doesn't need jQuery at all - I was just lazy when I wrote it.

https://pastebin.com/0uPFHC36

Reply by Chris

2018-03-18 22:08
Thanks Andreas, I was so close! With the JQuery reliance gone it's a really handy standalone tool for creating my simple text calendar format, what with the ability to change languages and date ranges. I expect this thread will get referenced on and off over the years if people are looking for a simple calendar as part of a simple digital approach.

Regards,
Chris

Reply by Cricket

2018-03-19 17:01
Here it is in Google Sheets.

https://docs.google.com/spreadsheets/d/15SpZOWckKCmqnWxUhUHx-nTjYs7CNo5BOwQ5nj9U1O8/edit?usp=sharing

First sheet is the formulae, with just a few rows, with two options: Single row or multiple row. The second sheet is 2018-2030. It takes a minute or two to calculate almost 5000 rows.